Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop publishing First/Last as constructors and use auto-scoping for take and drop. #10467

Merged
merged 11 commits into from
Jul 8, 2024

Conversation

jdunkerley
Copy link
Member

Pull Request Description

  • Removes First and Last from the Standard.Base exports.
  • Enable auto-scoping for all Index_Sub_Range and Text_Sub_Range.
  • Update all use of those methods to use auto-scoping.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.

Remove First and Last from exports.
Update libraries for `First` and `Last`.
Update `Text_Sub_Range` to use auto-scoping.
Copy link
Member

@JaroslavTulach JaroslavTulach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like everything is moving towards nice direction with autoscoped constructors.

@@ -789,15 +789,15 @@ type DB_Table
> Example
Drop first 10 rows of the table.

table.drop (First 10)
table.drop (..First 10)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the autoscoped constructors are now used in production code, we should find some time to invest into measuring and improving their peak performance.

@@ -1,4 +1,4 @@
from Standard.Base import all hiding First, Last
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being able to remove hidding is a step forward.

@jdunkerley jdunkerley added the CI: Ready to merge This PR is eligible for automatic merge label Jul 8, 2024
@mergify mergify bot merged commit 4c0647e into develop Jul 8, 2024
37 checks passed
@mergify mergify bot deleted the wip/jd/first-last branch July 8, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants